//
//  NSString+Extension.h
//  黑马微博2期
//
//  Created by apple on 14-10-18.
//  Copyright (c) 2014年 heima. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface NSString (Extension)
- (CGFloat)getSpaceLabelHeightwithSpeace:(CGFloat)lineSpeace withFont:(UIFont*)font withWidth:(CGFloat)width;
- (CGSize)sizeWithFont:(UIFont *)font maxW:(CGFloat)maxW;
- (CGSize)sizeWithFont:(UIFont *)font;


//判断班级
- (BOOL)isProClass;

// 判断是否是手机
- (BOOL)isPhoneNumber;
- (BOOL)isNEWPhoneNumber;

// 账号匹配
- (BOOL)isUserName;

// 邮箱
- (BOOL)isEmail;

// 密码
- (BOOL)isPassword;

// 身份证判断
- (BOOL)isSFZ;

// QQ判断
- (BOOL)isQQ;

//判断空
+ (BOOL)isBlankString:(NSString *)string;

//md5加密
+ (NSString *)md5:(NSString *)str;

//时间判断据当前
+ (NSString *)CreateTimeWithTimeStr:(NSString *)created_at;

//判断emoji
+ (BOOL)isContainsTwoEmoji:(NSString *)string;

//判空java
+ (BOOL)isNullStr:(id)obj;

//转字符
+ (NSString *)objectToString:(id)obj;

//加*处理
+ (NSString *)replaceStringWithAsterisk:(NSString *)originalStr startLocation:(NSInteger)startLocation lenght:(NSInteger)lenght;



/// json串转字典
/// @param jsonString <#jsonString description#>
+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;

@end
